package cn.kxm.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kxm.dao.InquiryBillDao;
import cn.kxm.pojo.InquiryBill;
import cn.kxm.service.InquiryBillService;
@Service
public class InquiryBillServiceImpl implements InquiryBillService{

	@Autowired
	private InquiryBillDao inquiryBillDao;
	@Override
	public List<Map<String, Object>> getInquirybill(InquiryBill iBill,Date endTime,Integer currentPageNo,
			Integer pageSize) {
		return inquiryBillDao.getInquirybill(iBill, endTime, (currentPageNo-1)*pageSize, pageSize);
	}
	@Override
	public int getInquirybillCount(InquiryBill iBill, Date endTime) {
		return inquiryBillDao.getInquirybillCount(iBill, endTime);
	}

}
